import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.*;
import java.util.List;
import javax.swing.*;

import java.awt.*;

import javax.swing.JPanel;

public class addFeature extends JPanel implements MouseListener, MouseMotionListener{
	private Connection connect;
	 private Image background;
	 private int goNext=0;
	 
	 public addFeature(){
		 loadImages();
	 }
	
	public void loadImages(){
	       try{
	           background = new ImageIcon("pics/bg.png").getImage();
	          
	        } catch (Exception e) { }
	       
	       repaint();
	   }
	   
	   public void paintComponent(Graphics g){
	       super.paintComponent(g);
	       Graphics2D g2d = (Graphics2D) g;
	       setForeground(Color.red);
	       setFont(new Font("Arial",Font.BOLD,25));
	       g2d.drawImage(background, 0, 0, this);
	       g2d.drawString("addFeature",180,160);
	       
	   }
	   
	   public void setGoNext(int d){
		   goNext=1;
	   }
	   
	   public int getGoNext(){
		  return goNext; 
	   }
	   
	   public void Loopy(){
			while(goNext!=1)
				repaint();
			}

	
	public void mouseClicked(MouseEvent me) {
	   	
	   }
	   public void mousePressed(MouseEvent me) {
	       
	   }
	   public void mouseReleased(MouseEvent me) {
	       
	   }
	   public void mouseDragged(MouseEvent me) {
	       
	   }
	   public void mouseMoved(MouseEvent me) {
	   
	   }    
	   public void mouseEntered(MouseEvent me) {
	       
	   }
	   public void mouseExited(MouseEvent me) {
	       
	   }
}
